package com.fubowen.api.login

import com.fubowen.api.extension.fetchPost
import com.fubowen.api.extension.toJson
import com.fubowen.api.login.bean.Login
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

suspend fun login() {
    val url = "http://192.168.101.107:8080/v1/user/login"
    val dd = withContext(Dispatchers.IO) { fetchPost(url, Login().toJson()).body.string() }
    var ddd = dd
}